package com.SunSoft.PhoneRemoteControl;

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Build;
import android.os.Build.VERSION;
import android.widget.TextView;
import android.widget.Toast;
import com.tasogo.comm.b;
import com.tasogo.comm.g;

final class bd
  implements DialogInterface.OnClickListener
{
  public final void onClick(DialogInterface paramDialogInterface, int paramInt)
  {
    String str = Build.MODEL.toUpperCase();
    paramInt = Build.VERSION.SDK_INT;
    if ((str.contains("I9192")) || (str.contains("C01")) || (str.contains("I95")) || (str.contains("G800")) || (str.contains("G900")) || (str.contains("N900")) || (str.contains("N910")))
    {
      if (paramInt >= 19)
        break label270;
      MainControl.f(this.a, 3);
    }
    if (str.contains("MI 4"))
      MainControl.f(this.a, 4);
    if (str.contains("HTC one"))
      MainControl.f(this.a, 5);
    MainControl.d(this.a).a("save_device", String.valueOf(MainControl.b(this.a)));
    this.a.aS.setText(MainControl.w(this.a)[MainControl.b(this.a)]);
    if (MainControl.b(this.a) > 0);
    while (true)
      try
      {
        while (MainControl.b(this.a) == 3)
        {
          MainControl.a(new g());
          Toast.makeText(this.a, this.a.getString(2131099864) + MainControl.w(this.a)[MainControl.b(this.a)] + this.a.getString(2131099865), 0).show();
          paramDialogInterface.cancel();
          return;
          label270: MainControl.f(this.a, 2);
        }
        MainControl.a(new b());
      }
      catch (NoClassDefFoundError localNoClassDefFoundError)
      {
        MainControl.x(this.a);
      }
  }
}